import requests
def get_one_img():
    url="https://p0.meituan.net/movie/289f98ceaa8a0ae737d3dc01cd05ab052213631.jpg@464w_644h_1e_1c"
    headers={
        "User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
    }
    res=requests.get(url,headers=headers)
    #print(res)
    with open("kill.jpg",'wb') as f:
        f.write(res.content)

def get_img(url,name):
    headers={
        "User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
    }
    res=requests.get(url,headers=headers)
    img_name=f"{name}.jpg"
    with open(img_name,'wb') as f:
        f.write(res.content)

url="https://p0.meituan.net/movie/da64660f82b98cdc1b8a3804e69609e041108.jpg@464w_644h_1e_1c"
name='1'
get_img(url,name)